// import {inputMixin} from 'lib/mixins'
export default {
  render (h) {
    let option = this.option
    return (
      <elInput
        disabled={option.disabled}
        value={option.value}
        type={option.type}
        icon={option.icon}
        step={option.step}
        rows={option.rows}
        placeholder={option.placeholder}
        onInput={(val)=>{
          option.value = val
        }}
        >
        {option.append ? <elButton slot="append">{option.append}</elButton> : null}
        {option.prepend ? <elButton slot="prepend">{option.prepend}</elButton> : null}
      </elInput>
    )
  },
  props: ['option'],
  // mixins: [inputMixin],
  name: 'vInput'
}
